import { dwHttp } from '@/utils/http';
import type { IDictItem } from './interface';
import type { IResponseData } from '@/types/http';

export const getDictItemList = (dictCode: string) => {
  return dwHttp<IResponseData<IDictItem[]>>({
    isSuccessTip: false,
    url: '/admin-api/sys/dict/item/list',
    params: { dictCode: dictCode },
  });
};
